package pro.cherish.knowledgemqrabbitmq.t2;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 创建人：cherish
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2019-10-27 cherish 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：TestController
 * @Description 功能说明：
 * <p>
 * TODO
 * </p>
 * **********************************************************************
 * @date 创建日期： 2019-10-27 cherish
 */
@RestController
public class TestController {
    @Autowired
    private MsgProducer msgProducer;

    @RequestMapping("/sendMsg2A")
    public void sendMsg2A(String msg){
        msgProducer.sendMsg2A(msg);
    }
    @RequestMapping("/sendMsg2B")
    public void sendMsg2B(String msg){
        msgProducer.sendMsg2B(msg);
    }
    @RequestMapping("/sendAll")
    public void sendAll(String msg) {
        msgProducer.sendAll(msg);
    }
}
